package com.service.dao.util;

import com.service.dao.enums.MemberEnums;
import com.service.dao.model.Member;
import lombok.NonNull;
import org.springframework.util.ObjectUtils;

/**
 * 会员工具类
 */
public class MemberUtils {

    public static boolean isMerchant(@NonNull Member member) {
        return ObjectUtils.nullSafeEquals(member.getMerchant(), MemberEnums.Merchant.valid.getCode());
    }


}
